'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/new', controller.new.list);
  router.get('/user', controller.user.index);
  // router.resources('/user', controller.user)
  app.beforeStart(async () => {
    console.log('===== 启动初始化 =====');
  });
};
